from rest_framework import serializers
# from meiduo_admin.my_paginate import MyPageNumberPagination
from goods.models import GoodsChannel

# 1.商品规格序列化器
class ChannelsSerializer(serializers.ModelSerializer):

    group=serializers.StringRelatedField (read_only=True)

    group_id=serializers.IntegerField ()

    category=serializers.StringRelatedField (read_only=True)
    category_id=serializers.IntegerField ()

    class Meta:
        model = GoodsChannel
        fields = "__all__"



